package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author cfr
 * @date 2022/1/9
 * @TIME:19:23
 */
@Data
@TableName("hm_articles")
public class Articles implements Serializable {
    private static final long serialVersionUID = 1L;

    //文章编号
    private Integer id;

    //标题
    private String title;

    //文章正文
    @TableField("articleBody")
    private String articleBody;

    @TableField(exist = false)
    private String username;
    //视频地址
    @TableField("videoURL")
    private String videoURL;

    //阅读数
    private Integer visits;

    //状态
    private Integer state;

    //创建时间
    @TableField("createTime")
    private Date createTime;

    //录入人
    @TableField("creatorID")
    private Integer creatorID;
}
